#ifndef PLAYBACKWIDGET_H
#define PLAYBACKWIDGET_H

#include <QtGui/QWidget>

#include <QVideoWidget>
#include <QMediaPlayer>


class QPushButton;

class PlaybackWidget : public QWidget
{
    Q_OBJECT

public:
    PlaybackWidget(QWidget *parent = 0);
    ~PlaybackWidget();
public:
    void setMediaUrl(QUrl aUrl);
public slots:
	void setLocalUrl();
	void setRemoteUrl();
	void mediaStatusChanged ( QMediaPlayer::MediaStatus status );
private:
	QString stateToString ( QMediaPlayer::MediaStatus status );
public:
	QMediaPlayer* m_player;
	QMediaPlaylist* m_playlist;
	QVideoWidget* m_videoWidget;
    
    QPushButton* m_playButton;
    QPushButton* m_pauseButton;
    QPushButton* m_stopButton;
    QPushButton* m_hideButton;
};

#endif // PLAYBACKWIDGET_H
